package class2;

public class Test1 {

    public static<T> void print(T[] value){
        for (T v:value) {
            System.out.print(v+" ");
        }
        System.out.println();
    }

    public static void main(String[] args) {
        Integer[] arr1=new Integer[]{1,2,3,4,5,6,7,8,9};
        Boolean[] arr2=new Boolean[]{false,true,false,false,true};
        Double[] arr3=new Double[]{12.3,15.4,48.6,84.3,78.4};
        Float[] arr4=new Float[]{1.2f,2.6f,3.6f,4.6f,5.5f,6.6f,7.9f,8.6f,9.9f};
        Long[] arr5=new Long[]{15l,48l,87l,89l,48l,78l,468l,7895l};
        print(arr1);
        print(arr2);
        print(arr3);
        print(arr4);
        print(arr5);
    }
}
